package com.ysy.constant;


public class RedisConstant {


    /**
     * 关注列表
     */
    private static final String USER_FOLLOW_KEY_PREFIX = "follow:";
    public static String buildUserFollowKey(Long userId) {
        return USER_FOLLOW_KEY_PREFIX + userId;
    }

    /**
     * 粉丝列表
     */
    private static final String USER_FANS_KEY_PREFIX = "fans:";
    public static String buildUserFansKey(Long userId) {
        return USER_FANS_KEY_PREFIX + userId;
    }





}
